package com.jpyl.jpMedicalTreatment.view.activity.self;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.jpyl.jpMedicalTreatment.R;
import com.jpyl.jpMedicalTreatment.util.QRCodeUtil;
import com.jpyl.jpMedicalTreatment.view.activity.BaseActivity;

import butterknife.BindView;

/**
 * 关于界面
 * Created by 15697 on 2019/4/2.
 */

public class AboutActivity extends BaseActivity {

    @BindView(R.id.mine_scan)
    ImageView view;

    @BindView(R.id.local_version)
    TextView localVersion;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_about;
    }

    @Override
    public void afterCreate(Bundle savedInstanceState) {
        mTitleTv.setText("关于");
        localVersion.setText("V"+getVersionName());
        String url = "http://www.jpylqx.com/";
        Bitmap mBitmap = QRCodeUtil.createQRCodeBitmap(url, 480, 480);
        view.setImageBitmap(mBitmap);
    }
}